import pymongo
from settings import mongo_url

myclient = pymongo.MongoClient(mongo_url)

# db = myclient.admin
# # 认证
# db.authenticate('admin', '123456')

mydb = myclient["board"]

stock_db = mydb['stocks']  #  所有stock

data_day_db = mydb['data_day']  # 日